<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <van-button type="primary" @click="onClick">app.use(Button);</van-button>
  </div>
  <div class="test"></div>
</template>

<script lang="ts">

import { Options, Vue } from 'vue-class-component';
import {Toast} from "vant";

@Options({
  props: {
    msg: String
  }
})
export default class HelloWorld extends Vue {
  msg!: string;
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
.test {
  width: 150px;
  height: 120px;
  background-color: #2c3e50;
  margin: 15px;
}
</style>
